package com.zl.smartmall.library.po;

import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

public class AddressGZ  implements Parcelable{
	private int id;
	private String name;
	private int cmid;
	private List<AddressGZ> lists;
	private String phone;

	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public AddressGZ(Parcel source) {
		id = source.readInt();
		cmid = source.readInt();
		name = source.readString();
		phone = source.readString();
	}
	public AddressGZ() {
		// TODO Auto-generated constructor stub
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<AddressGZ> getLists() {
		return lists;
	}

	public void setLists(List<AddressGZ> lists) {
		this.lists = lists;
	}

	public int getCmid() {
		return cmid;
	}

	public void setCmid(int cmid) {
		this.cmid = cmid;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeInt(cmid);
		dest.writeString(name);
		dest.writeString(phone);
	}
	
	public static final Parcelable.Creator<AddressGZ> CREATOR = new Creator<AddressGZ>() {
		
		@Override
		public AddressGZ[] newArray(int size) {
			return new AddressGZ[size];
		}
		
		@Override
		public AddressGZ createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			return new AddressGZ(source);
		}
	};

}
